//--------------------------------------------------------------
//
// Qizhi Zhang 
// ezhung@gmail.com
// http://www.moorwind.com
//
//--------------------------------------------------------------
package reader.dao
{
	import __AS3__.vec.Vector;
	
	import reader.model.vo.MediaVO;
	import reader.model.vo.UserVO;
	
	public interface IMediaDAO
	{
		function insertMedia(media:MediaVO, userid:int):int;
		
		function deleteMedia(media:MediaVO):Boolean;
		
		function deleteMediaByUser(user:UserVO):Boolean;
		
		function deleteMedias(medias:Vector.<MediaVO>):void;
		
		function selectMedia(mid:int):MediaVO;
		
		function selectAllMedia(userid:int, prefetch:int = -1):Vector.<MediaVO>;
		
		function getCount(user:UserVO):uint
	}
}